<?php
/**
 * 应用程序路由配置
 *
 * Created by PhpStorm.
 * User: libin
 * Date: 2017/9/8
 * Time: 下午2:18
 */
return [
 		// 首页
	'index' => [
        'method' => 'get',
        'action' => 'indexController@index'
    ],

   'add_blog' => [
        'method' => 'get',
        'action' => 'indexController@add_blog'
    ],

    
     'communicate' => [
        'method' => 'get',
        'action' => 'indexController@communicate'
    ],

    'addFriends' => [
        'method' => 'get',
        'action' => 'indexController@addFriends'
    ],

     'doAddFriends' => [
        'method' => 'get',
        'action' => 'indexController@doAddFriends'
    ],
    
    'album' => [
        'method' => 'get',
        'action' => 'GalleryController@album'
    ], 

   'blog_detail' => [
        'method' => 'get',
        'action' => 'indexController@blog_detail'
    ],

    'blog_list' => [
        'method' => 'get',
        'action' => 'indexController@blog_list'
    ],


    'lock' => [
        'method' => 'get',
        'action' => 'indexController@lock'
    ],

    'profile' => [
        'method' => 'get',
        'action' => 'indexController@profile'
    ],

    'mail' => [
        'method' => 'get',
        'action' => 'MailController@mail'
    ],

    'mail_detail' => [
        'method' => 'get',
        'action' => 'MailController@mail_detail'
    ],

    'mail_e' => [
        'method' => 'get',
        'action' => 'MailController@mail_e'
    ],

    'send_mail' =>[
        'method' => 'post',
        'action' => 'MailController@send_mail'       
    
    ],

        'deal_mail' =>[
        'method' => 'get',
        'action' => 'MailController@deal_mail'       
    
    ],

        'mail_recover' =>[
        'method' => 'get',
        'action' => 'MailController@mail_recover'       
    
    ],

      'do_edit' => [
        'method' => 'post',
        'action' => 'indexController@do_edit'
    ],

          'edit' => [
        'method' => 'get',
        'action' => 'indexController@edit'
    ],
            
        'comment' => [
        'method' => 'post',
        'action' => 'indexController@comment'
    ],

        'delete_comment' => [
        'method' => 'get',
        'action' => 'indexController@delete_comment'
    ],


	'out_login' => [
        'method' => 'get',
        'action' => 'UserController@out_login'
    ],

     'content' => [
        'method' => 'post',
        'action' => 'indexController@content'
    ],

     'dynamic' => [
        'method' => 'post',
        'action' => 'indexController@dynamic'
    ],

      'delete_dynamic' => [
        'method' => 'get',
        'action' => 'indexController@delete_dynamic'
    ],

       'recover_comment' => [
        'method' => 'get',
        'action' => 'indexController@recover_comment'
    ],

    'createAlbum' => [
        'method' => 'post',
        'action' => 'indexController@createAlbum'
    ],

        'photo' => [
        'method' => 'post',
        'action' => 'indexController@photo'
    ],
    
    'uploadHeadPicture' => [
        'method' => 'post',
        'action' => 'GalleryController@uploadHeadPicture'
    ],

        'delete_picture' => [
        'method' => 'get',
        'action' => 'GalleryController@delete_picture'
    ],

    
    'login' => [
        'method' => 'get',
        'action' => 'UserController@login'
    ],


    'do_login' => [
        'method' => 'post',
        'action' => 'UserController@do_login'
    ],

     'register' => [
        'method' => 'get',
        'action' => 'UserController@register'
    ],

        'do_register' => [
        'method' => 'post',
        'action' => 'UserController@do_register'
    ],
     

];